package com.coreJava.shejimoshi.zerenlian;


/**
 * 作者: LCG
 * 日期: 2020/2/13 23:39
 * 描述:
 */
public class ZerenlianImpl extends ZerenlianAbstrat implements Zerenlian {

    private String name;

    public ZerenlianImpl(String name) {
        this.name = name;
    }

    @Override
    public void test() {
        System.out.print(name+"--->");
        if(getZerenlian()!=null){
            getZerenlian().test();
        }

    }

}
